<html>
<script src="./vue.js"></script>
<script>
    onload = function () {
        var app = new Vue({
            el: '.book',
            data: {
                goods: [
                    {
                        name: '金币',
                        price: 500,
                    },
                    {
                        name: '铲子',
                        price: 1000,
                    },
                    {
                        name: '小铲子',
                        price: 100,
                    }
                ]
            }
        })
    }
</script>

<head>
    <style>
        @font-face {
            font-family: AlibabaPuHuiTi-2-55-Regular;
            src: url(https://puhuiti.oss-cn-hangzhou.aliyuncs.com/AlibabaPuHuiTi-2/AlibabaPuHuiTi-2-55-Regular/AlibabaPuHuiTi-2-55-Regular.woff2) format('woff2');
        }

        html {
            font-family: 'AlibabaPuHuiTi-2-55-Regular', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
            width: max-content;
            height: 0;
            background: white;
            max-width: 400px;
            min-width: 150px;
        }

        body {
            margin: 0;
            padding: 0;
            width: max-content;
        }

        p {
            padding: 10px;
            word-wrap: break-word;
            white-space: pre-wrap;
            font-size: 13px;
        }

        .book {
            border-radius: 4px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            font-size: 12px;
            font-weight: 500;
            color: #333;
            line-height: 1.5;
            position: relative;
        }

        .bg {
            min-width: 300px;
            object-fit: cover;
            z-index: 1;
        }

        .plant {
            position: absolute;
            left: 61px;
            top: 20px;
            width: 192px;
            height: 146px;
            z-index: -1;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .plant .grass {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            position: absolute;
            left: 0;
            top: 0;
            z-index: 1;
        }

        .plant .img {
            height: 80%;
            display: block;
            object-fit: cover;
            z-index: 2;
        }

        .name {
            width: 100%;
            text-align: center;
            font-size: 18px;
            font-weight: 600;
            color: #d09a29;
            position: absolute;
            top: 180px;
            left: 0;
            letter-spacing: 1px; /* 字间距 */
        }

        .info {
            width: 272px;
            height: 237px;
            position: absolute;
            top: 220px;
            left: 20px;
            overflow: hidden;
            z-index: 2;
            padding: 10px;
            box-sizing: border-box;
            color: #8f431b;
            font-weight: bold;
            font-size: 16px;
        }

        .red {
            color: #9e0515;
        }

        .bottom {
            position: absolute;
            bottom: 10px;
            width: 100%;
            left: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 10px;
            box-sizing: border-box;
        }

        .desc {
            color: #33395d;
            margin-bottom: 5px;
            font-size: 14px;
        }
        
    </style>
</head>

<body>
    <div class="book">
        <img class="bg" src="https://pic.imgdb.cn/item/667e3bd4d9c307b7e906bfc7.png">
        <div class="plant">
            <img class="grass" src="https://pic.imgdb.cn/item/667e3c21d9c307b7e9076d9e.jpg">
            <img class="img" src="https://pic.imgdb.cn/item/667985b3d9c307b7e9ac5908.png">
        </div>
        <div class="name">豌豆射手</div>
        <div class="info">
            <div class="bottom">
                <div>
                    花费：<span class="red">100</span>
                </div>
                <div>
                    种植冷却：<span class="red">无</span>
                </div>
            </div>
            <div class="desc">最基础的阳光生产植物，也是玩家最重要的阳光来源。</div>
            <div class="item">
                类型：
                <span class="red">生产</span>
            </div>
        </div>
    </div>
</body>

</html>